package com.rightsidetech.system.mapper;

import com.rightsidetech.system.dtos.request.news.NewsTypeReq;
import com.rightsidetech.system.dtos.response.news.NewsTypePageResp;
import com.rightsidetech.system.entity.news.SysNewsType;

import java.util.List;

public interface SysNewsTypeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysNewsType record);

    int insertSelective(SysNewsType record);

    SysNewsType selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysNewsType record);

    int updateByPrimaryKey(SysNewsType record);

    Long selectCountByName(String typeName);

    List<NewsTypePageResp> selectPageList();

    List<NewsTypePageResp> selectAppList();

    List<NewsTypePageResp> selectAppListById(NewsTypeReq newsTypeReq);
}